package mesweb.mesweb.service.impl.produceLine;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import mesweb.mesweb.entity.produceLine.ModelProduceLine;
import mesweb.mesweb.mapper.produceLine.ModelProduceLineMapper;
import mesweb.mesweb.service.produceLine.IModelProduceLineService;
import mesweb.mesweb.vo.produceLine.ModelProduceLineVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author niufw
 * @since 2021-05-19
 */
@Service
public class ModelProduceLineServiceImpl extends ServiceImpl<ModelProduceLineMapper, ModelProduceLine> implements IModelProduceLineService {

    @Autowired
    private  ModelProduceLineMapper modelProduceLineMapper;
    @Override
    public IPage<ModelProduceLineVo> getProduceLine(Page page, QueryWrapper queryWrapper) {
        return modelProduceLineMapper.getProduceLine(page,queryWrapper);
    }

    @Override
    public List<ModelProduceLineVo> getProduceLine(QueryWrapper queryWrapper) {
        return modelProduceLineMapper.getProduceLine(queryWrapper);
    }
}
